package com.hp.gxw.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.hp.gxw.entity.CostEquipmentPower;
import com.hp.gxw.mapper.CostEquipmentPowerMapper;
import com.hp.gxw.service.ICostEquipmentPowerService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author huangping
 * @since 2024-01-09
 */
@Service
public class CostEquipmentPowerServiceImpl extends ServiceImpl<CostEquipmentPowerMapper, CostEquipmentPower> implements ICostEquipmentPowerService {

    @Resource
    private CostEquipmentPowerMapper costEquipmentPowerMapper;

    @Override
    public CostEquipmentPower queryEquipmentPower(String type) {
        return costEquipmentPowerMapper.queryEquipmentPower(type);
    }

    @Override
    public List<CostEquipmentPower> listInfo(QueryWrapper<CostEquipmentPower> ew) {
        return costEquipmentPowerMapper.pageEquipmentPower(ew);
    }
}
